/**
 * 2019年1月18日下午10:47:20
 * @author 谢进财
 */
package com.baihang.project.ds.entity.dbMap;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;

import com.baihang.project.ds.entity.RoomCollectionEntity;

/**
 * @author whati
 *
 */
@Repository
public class RoomCollectionEntityRMapper implements RowMapper<RoomCollectionEntity> {

	/* (non-Javadoc)
	 * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
	 */
	@Override
	public RoomCollectionEntity mapRow(ResultSet rs, int rowNum) throws SQLException {
		RoomCollectionEntity entity = new RoomCollectionEntity();
		entity.setRoomId(rs.getInt("FieldId"));
		entity.setName(rs.getString("D_Name"));
		entity.setCardId(rs.getString("D_Card"));
		entity.setTel(rs.getString("D_Tel"));
		return entity;
	}

}
